// CMSView.h : interface of the CCMSView class
//


#pragma once


#include "bedctrl.h"

//#define CTRLS_NUM			20

//#define ZOOM_RATIO			0.5
#define CTRL_X				250
#define CTRL_Y				220


class CCMSView : public CScrollView
{
protected: // create from serialization only
	CCMSView();
	DECLARE_DYNCREATE(CCMSView)

// Attributes
public:
	CCMSDoc* GetDocument() const;
//	int		m_nHCtrlNum;

	CPtrList m_lstBedCtrls;

// Operations
public:
//	CBedCtrl m_BedCtrl[CTRLS_NUM];
//	void	RelayoutCtrls(int nHCtrlNum);
// Overrides
public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// Implementation
public:
	virtual ~CCMSView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg LRESULT OnMsgRelayout(WPARAM wp, LPARAM lp);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in CMSView.cpp
inline CCMSDoc* CCMSView::GetDocument() const
   { return reinterpret_cast<CCMSDoc*>(m_pDocument); }
#endif

